Skip to content

fix(patch): cherry-pick d128fb0 to release/v0.31.0-preview.0-pr-20351 to patch version v0.31.0-preview.0 and create version 0.31.0-preview.1#20512

Merged
Abhijit-2592 merged 1 commit into
release/v0.31.0-preview.0-pr-20351from
hotfix/v0.31.0-preview.0/0.31.0-preview.1/preview/cherry-pick-d128fb0/pr-20351
Feb 27, 2026
Merged

fix(patch): cherry-pick d128fb0 to release/v0.31.0-preview.0-pr-20351 to patch version v0.31.0-preview.0 and create version 0.31.0-preview.1#20512
Abhijit-2592 merged 1 commit into
release/v0.31.0-preview.0-pr-20351from
hotfix/v0.31.0-preview.0/0.31.0-preview.1/preview/cherry-pick-d128fb0/pr-20351

Conversation

@gemini-cli-robot

Copy link
Copy Markdown
Collaborator

This PR automatically cherry-picks commit d128fb0 to patch version v0.31.0-preview.0 in the preview release to create version 0.31.0-preview.1.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This automated patch release cherry-picks a commit that enhances the CLI's workspace policy handling. The primary change introduces an autoAcceptWorkspacePolicies flag, which allows for automatic acceptance of policy updates, thereby reducing user friction in certain scenarios. The update also ensures that explicit confirmation is still required when auto-acceptance is disabled, and includes corresponding adjustments to warning messages and extensive test updates to cover all new behaviors.

Highlights

  • Workspace Policy Auto-Acceptance: Introduced a new autoAcceptWorkspacePolicies flag and a setter function (setAutoAcceptWorkspacePolicies) to control whether workspace policy updates are automatically accepted.
  • Policy Resolution Logic Update: Modified the resolveWorkspacePolicyState function to conditionally auto-accept policy updates based on the autoAcceptWorkspacePolicies flag, affecting behavior in both interactive and non-interactive modes.
  • Comprehensive Test Coverage: Updated and added new test cases across policy.test.ts and workspace-policy-cli.test.ts to thoroughly validate the new auto-acceptance logic and its interaction with different interactive settings.
Changelog
  • packages/cli/src/config/policy.test.ts
    • Updated test cases for resolveWorkspacePolicyState to incorporate the new autoAcceptWorkspacePolicies flag.
    • Added a new test case to verify non-interactive auto-acceptance when autoAcceptWorkspacePolicies is false.
  • packages/cli/src/config/policy.ts
    • Added autoAcceptWorkspacePolicies flag and setAutoAcceptWorkspacePolicies function.
    • Modified resolveWorkspacePolicyState to conditionally auto-accept policy updates based on the autoAcceptWorkspacePolicies flag.
    • Adjusted warning messages for policy changes in interactive and non-interactive modes.
  • packages/cli/src/config/workspace-policy-cli.test.ts
    • Updated CLI integration tests to align with the new autoAcceptWorkspacePolicies logic, ensuring automatic acceptance when true.
    • Added a new test case to confirm that a policy update request is still generated when autoAcceptWorkspacePolicies is false in interactive mode.
Activity
  • This pull request was automatically generated as a cherry-pick to create a patch release for version v0.31.0-preview.0, resulting in 0.31.0-preview.1.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-cli gemini-cli Bot added the status/need-issue Pull requests that need to have an associated issue. label Feb 26, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request introduces changes to automatically accept new or modified workspace policies by default. While this involves a security-usability trade-off, it is considered acceptable to improve user experience and reduce friction, as per established repository guidelines. Therefore, the proposed changes align with the project's priorities.

@github-actions

Copy link
Copy Markdown

Size Change: +231 B (0%)

Total Size: 25.7 MB

ℹ️ View Unchanged
Filename Size Change
./bundle/gemini.js 25.2 MB +231 B (0%)
./bundle/node_modules/@google/gemini-cli-devtools/dist/client/main.js 221 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js 227 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.js 11.5 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/types.js 132 B 0 B
./bundle/sandbox-macos-permissive-open.sb 890 B 0 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB 0 B
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB 0 B
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB 0 B
./bundle/sandbox-macos-strict-open.sb 4.82 kB 0 B
./bundle/sandbox-macos-strict-proxied.sb 5.02 kB 0 B

compressed-size-action

@Abhijit-2592 Abhijit-2592 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matches the original PR: #20351

@Abhijit-2592 Abhijit-2592 merged commit 20f6341 into release/v0.31.0-preview.0-pr-20351 Feb 27, 2026
28 checks passed
@Abhijit-2592 Abhijit-2592 deleted the hotfix/v0.31.0-preview.0/0.31.0-preview.1/preview/cherry-pick-d128fb0/pr-20351 branch February 27, 2026 00:23
@sripasg sripasg added the size/m A medium sized PR label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m A medium sized PR status/need-issue Pull requests that need to have an associated issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants